module odefu.engine.messages.Message;

public struct Message(T)
{
	private const string _name;
	
	private const T _value;
	
	public this(string name, T _value = null)
	{
		assert (name != null);
		
		_name = name;
		_value = value;
	}
	
	@property
	{
		public string name()
		{
			return _name;
		}
		
		public T value()
		{
			return _value;
		}
	}
}